
import Axios from "axios";
import { pushUrl } from "./config.js";

export let getPushTypesApi = (schoolId) => {
    return (
        Axios.get(pushUrl + "pushrecord/getPushTypes", {
            params: {
                schoolId: schoolId,
            }
        })
    );
};


export let getPushRecordApi = (schoolId, pushUserName, startTime, endTime, pushTypes) => {
    return (
        Axios.post(pushUrl + "pushrecord/getPushRecord", {
            schoolId: schoolId,
            pushUserName: pushUserName,
            startTime: startTime,
            endTime: endTime,
            pushTypes: pushTypes
        })
    );
};